package com.imooc.springboot.dubbo.nilinili.service;

import com.imooc.springboot.dubbo.nilinili.entity.bean.PageBean;
import com.imooc.springboot.dubbo.nilinili.entity.dto.PhotoDTO;
import com.imooc.springboot.dubbo.nilinili.entity.dto.PhotoDetailDTO;

import java.util.List;

public interface PhotoService {

    PageBean<PhotoDTO> selectPhotoPagesByCategoryId(Integer pageNum, Integer pageSize, Integer id);
    List<PhotoDTO> selectPhotosByCategoryId(Integer id);

    List<PhotoDTO> selectAllPhotos();

    PhotoDetailDTO getPhotoById(Integer id);

    String getShuffingUrls();

    String updateApprovalCounts(Integer photoId,String token);

    String getPhotosByUserId(String userId,int pageNum);

    boolean insertPhoto(PhotoDetailDTO photoDetailDTO, String token);

    List<PhotoDTO> getNewPhoto();

    void getAllPhotoApprovalCounts(String userId);

    void getAllPhotoCounts(String userId);

    boolean addPhotoViewCount(Integer photoId);

    String deletePhotoByPhotoId(String photoId);

    List<PhotoDTO> getPhotoByName(String photoName);
}
